package com.dyp.parent.service;

public class GreetingService {
    private final String prefix;
    private final String suffix;

    public GreetingService(String prefix, String suffix) {
        this.prefix  = prefix;
        this.suffix  = suffix;
    }

    public String greet(String name) {
        return prefix + " " + name + " " + suffix;
    }
}